package com.camartsApp.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@TableName("photo")
public class Photo {

    @TableId(type = IdType.AUTO)
    private Long id;

    @TableField("user_id")
    private Long userId;

    private String url;

    private BigDecimal longitude;
    private BigDecimal latitude;

    @TableField("is_hidden")
    private Boolean isHidden;
    private Integer status;

    @TableField("uploaded_at")
    private LocalDateTime uploadedAt;

    @TableField("taken_at")
    private LocalDateTime takenAt;

    private String aperture;
    private String shutter;
    private Integer iso;

    @TableField("focal_length")
    private String focalLength;
    private String device;
    private String category;

    @TableField("like_count")
    private Integer likeCount;
}